<h2>Sign up</h2>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

	<div class="picture">

    <%= f.file_field :avatar %>
  </div>

  <div><%= f.label :email %><br />
  <%= f.email_field :email %></div>

  <div><%= f.label :password %><br />
  <%= f.password_field :password %></div>

  <div><%= f.label :password_confirmation %><br />
  <%= f.password_field :password_confirmation %></div>

	<div><%= f.label :name %><br />
  <%= f.text_field :name %></div>

	<div><%= f.label :nickname %><br />
  <%= f.text_field :nickname %></div>

	<div><%= f.label :kot %><br />
  <%= f.text_field :kot %></div>

	<div><%= f.label :studies %><br />
  <%= f.text_field :studies %></div>

	<div><%= f.label :birthday %><br />
  <%= f.datetime_select :birthday %></div>

  <div><%= f.submit "Sign up" %></div>
<% end %>

<%= render "devise/shared/links" %>
